<?php
if($menu){
	foreach($menu as $v){
		if(admin_check_permission($v->id,'r')){
?>
<li><a <?php if($module==$v->name_function){ ?>class="active"<?php } ?> href="<?=PATH_URL.'admincp/'.$v->name_function.'/'?>"><span class="menu_items"><?=$v->name?></span></a></li>
<?php
		}
	}
}
?>